module.exports.randomID = (e) => {
  e = e || 32;
  return Math.random().toString(36).slice(-e);
};

module.exports.postID = () => {
  var _date = new Date();
  var _month = _date.getMonth() + 1 >= 10 ? '' : '0' + (_date.getMonth() + 1);
  return _date.getFullYear() + _month + _date.getDate() + this.randomID(4);
};
